package com.china.lottery.listener.task.service;

import java.util.List;

import net.blogjava.frankiegao123.log.slf4j.Log;
import net.blogjava.frankiegao123.log.slf4j.LogFactory;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.china.lottery.listener.dao.TbSpJczqDao;
import com.china.lottery.listener.dao.lChannelSmgTournamentbakDao;
import com.china.lottery.listener.jczq.JczqGrepEngine;
import com.china.lottery.listener.task.core.BaseNoteService;
@Component("tbSpJczqService")
public class TbSpJczqService extends BaseNoteService{
	
	protected Log log = LogFactory.getLog(getClass());
	
    @Autowired
	private TbSpJczqDao dao;
	@Autowired
	private lChannelSmgTournamentbakDao lchannelsmgtournamentbakdao;
    
	@Override
	public List<String> getNumbers() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getContent() {
		// TODO Auto-generated method stub
	    //System.out.println("�����ܼ���*********************************************");
	  
		//TB_SP_JCZQ t=new TB_SP_JCZQ("72","140128007",new Date(),"1.79,3.70,3.17");
		//dao.save(t);
	    JczqGrepEngine jc=new JczqGrepEngine();
	    try {
			jc.grepGuDingData(dao);
			jc.grepPeriod(lchannelsmgtournamentbakdao);
			jc.grepResult(lchannelsmgtournamentbakdao);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}
	
	public static void main(String[] args) {
		TbSpJczqService t=new TbSpJczqService();
		t.getContent();
	}
}
